package com.cow.framework.core.config.dict;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface DictDAO extends JpaRepository<Dict, Serializable>{
	List<Dict> findByTypeOrderByValue(String type);
	@Query("SELECT distinct new Dict(type,typeName) FROM Dict d order by type")
	List<Dict> findDictTypeList();
	List<Dict> findByTypeAndValue(String type,String value);
}
